package com.zkthink.ceres.product.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import com.zkthink.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 蛋坑表
 * </p>
 *
 * @author JustArgo
 * @since 2020-09-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ResourcePitUpdateDTO", description = "蛋坑表")
public class ResourcePitUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @NotEmpty(message = "名称不能为空")
    @Length(max = 32, message = "名称长度不能超过32")
    private String title;
    /**
     * 链接
     */
    @ApiModelProperty(value = "链接")
    @NotEmpty(message = "链接不能为空")
    @Length(max = 256, message = "链接长度不能超过256")
    private String url;
    /**
     * 路由
     */
    @ApiModelProperty(value = "路由")
    @NotEmpty(message = "路由不能为空")
    @Length(max = 256, message = "路由长度不能超过256")
    private String route;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @NotEmpty(message = "图标不能为空")
    @Length(max = 256, message = "图标长度不能超过256")
    private String icon;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;
    /**
     * 是否显示 1-显示 0-不显示
     */
    @ApiModelProperty(value = "是否显示 1-显示 0-不显示")
    @NotNull(message = "是否显示 1-显示 0-不显示不能为空")
    private Integer display;
    /**
     * 是否删除 1-删除 0-不删除
     */
    @ApiModelProperty(value = "是否删除 1-删除 0-不删除")
    @NotNull(message = "是否删除 1-删除 0-不删除不能为空")
    private Boolean isDelete;
}
